//
//  MessageViewController.m
//  xxShare
//
//  Created by 柳麟喆 on 2018/3/5.
//  Copyright © 2018年 lzLiu. All rights reserved.
//

#import "MessageViewController.h"
#import "LZSegmentView.h"
#import "ReplyMessageViewController.h"
#import "ThumbMessageViewController.h"

@interface MessageViewController ()

@end

@implementation MessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"我的消息";
    [self setUp];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)setUp{
    self.view.backgroundColor = BACKGROUND_COLOR;
    
    ReplyMessageViewController *reply = [[ReplyMessageViewController alloc]init];
    ThumbMessageViewController *thumb = [[ThumbMessageViewController alloc]init];
    reply.title = @"评论";
    thumb.title = @"通知";
    NSMutableArray *vcArray = [[NSMutableArray alloc]init];
    [vcArray addObject:reply];
    [vcArray addObject:thumb];
    [self addChildViewController:reply];
    [self addChildViewController:thumb];
    
    LZSegmentView *segment = [[LZSegmentView alloc]initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, SCREEN_HEIGHT - 64) andControllers:vcArray];
    [self.view addSubview:segment];
}

@end
